html, body {
  height: 100%;
}
@mixin setting-title {
  font-family: PingFangSC-Medium, PingFang SC;
  font-size: 16px;
  color: #262626;
  margin-bottom: 12px;
}
@mixin setting-small-title {
  font-family: PingFangSC-Medium, PingFang SC;
  font-size: 14px;
  color: #333333;
  font-weight: 500;
}
.setting-spare-part{
  height: 100%;
  &-header{
    padding: 0px 24px;
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    justify-content: space-between;
    background-color: #fff;
    border-bottom: 1px solid #f4f7f5;
    .setting-part-left{
        display: flex;
        justify-content: flex-start;
      cursor: pointer;
        height: 48px;
        line-height: 48px;
        color: #666666;
      .setting-back-btn{
        margin-bottom: 0;
        padding-right: 14px;
        border-right: 1px solid #F5F5F5;
      }
      .setting-back-name{
        margin-left: 12px;
        height: 35px;                   
      }
    }
  }
  &-content{
    margin: 12px;
    background: #fff;
    padding: 21px 16px;
    height: calc(100% - 73px);
    border-radius: 4px;
    overflow-y: scroll;
    .setting-spare-li{
      margin-bottom: 24px;
      .setting-spare-title{
        margin-bottom: 8px;
        @include setting-small-title;
        .card-tips-tooltip{
          font-size: 12px;
        }
        .edit-column{
          color: $color-primary;
          cursor: pointer;
          margin-left: 24px;
        }
        .setting-spare-switch{
          margin: 0 24px 0 24px;
        }
        .preview{
          color: $color-primary;
          cursor: pointer;
        }
      }
      .setting-spare-column{
        display: flex;
        justify-content: flex-start;
        flex-wrap: wrap;
        span{
          min-width: 76px;
          height: 32px;
          line-height: 32px;
          font-size: 14px;
          color: #333333;
          border: 1px solid #D8D8D8;
          text-align:  center;
          border-radius: 3px;
          margin-right: 12px;
          margin-bottom: 8px;
          padding: 0 5px;
        }
      }
      .setting-spare-msg{
        font-size: 14px;
        color: #8C8C8C;
        .el-select{
          width: 230px;
        }
      }
      .spare-parts{
        padding: 16px;
        background: #FAFAFA;
        border-radius: 4px;
      }
      .setting-spare-options{
        display: flex;
        justify-content: flex-start;
        .setting-spare-checkbox{
          display: flex;
          justify-content: flex-start;
          margin-right: 40px;
          .el-checkbox{
            margin-right: 4px;
          }
          .recommended-label{
            margin-bottom: 0;
            span{
              display: inline-block;
              width: 40px;
              height: 16px;
              font-size: 12px;
              background: #FAAD14;
              border-radius: 8px;
              text-align: center;
              color: #fff;
              margin-top: 3px;
              margin-right: 4px;
            }
          }
        }
      }
    }
  }
  .icon-question{
    font-size: 12px;
    color: #8C8C8C;
  }
  .algin-icon{
    margin-top: 3px;
  }
  .preview-dialog {
    .base-modal-header {
      display: flex;
      justify-content: space-between;
      .el-dialog__title {
        font-size: 18px;
      }
      .el-tooltip {
        color: #999;
      }
    }
    .base-modal-body {
      padding: 10px 20px;
      img{
        width: 100%;
      }
    }
  }
}

.setting-spare-msg-role {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  line-height: 40px;
  >span {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
  }
  .setting-spare-msg-role-select {
    display: flex;
    flex-flow: column;
    margin: 0 5px;
    position: relative;
  }
  .setting-spare-msg-role-select-error {
    .el-select, input {
      border-color: $color-danger !important;
    }
  }
  .setting-spare-msg-role-error {
    color: $color-danger;
    font-size: 12px;
    position: absolute;
    bottom: -24px;
  }
}